home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q30539
< prev
next >
Wrap
Text File
|
1989-02-02
|
1KB
|
50 lines
Q30539 80287 Instruction Inserted in Assembly Listing with /G1
Microsoft C Compiler
5.10
MS-DOS
Summary:
When the following program is compiled with /G1 (to generate code for
the 80186 processor) and /Fa (to produce an assembly language listing)
the resultant assembly language listing will fail to assemble because
the assembly code contains the following instruction:
fstsw ax
This instruction is an 80287 instruction but does not contain the .287
directive.
Microsoft has confirmed this to be a problem in Version 5.10 of the C
compiler. This is also a problem with the FORTRAN Version 4.10
compiler using the same compiler switches. The FORTRAN code also
compares two doubles.
Microsoft is researching this information and will post new
information as it becomes available.
More Information:
The following code demonstrates this problem:
/*
Compile /Fa /G1 /c
*/
#include <stdio.h>
#include <float.h>
#include <math.h>
main()
{
double a,b;
if (a > b)
printf("A>B");
else
printf("A<=B");
}
Keywords: buglist5.10 h_fortran
Updated 89/02/02 05:55